import request from '@/utils/request'

// 查询监测量配置列表
export function listDispatchMonitoringItemConfig(query) {
  return request({
    url: '/system/dispatchMonitoringItemConfig/list',
    method: 'get',
    params: query
  })
}

// 查询监测量配置详细
export function getDispatchMonitoringItemConfig(monitoringItemConfigId) {
  return request({
    url: '/system/dispatchMonitoringItemConfig/' + monitoringItemConfigId,
    method: 'get'
  })
}

// 新增监测量配置
export function addDispatchMonitoringItemConfig(data) {
  return request({
    url: '/system/dispatchMonitoringItemConfig',
    method: 'post',
    data: data
  })
}

// 修改监测量配置
export function updateDispatchMonitoringItemConfig(data) {
  return request({
    url: '/system/dispatchMonitoringItemConfig',
    method: 'put',
    data: data
  })
}

// 删除监测量配置
export function delDispatchMonitoringItemConfig(monitoringItemConfigId) {
  return request({
    url: '/system/dispatchMonitoringItemConfig/' + monitoringItemConfigId,
    method: 'delete'
  })
}
